package site.wuao.simpledesignmode.decorate;

/**
 * 抽象装饰者
 *
 * @author wuao
 * @date 2018.04.17
 * @note -
 * ---------------------------------------------------------------------------------------------------------------------
 * @modified -
 * @date -
 * @note -
 */
public abstract class Master extends Swordsman {
    private Swordsman mSwordsman;

    public Master(Swordsman swordsman) {
        mSwordsman = swordsman;
    }

    @Override
    public void attackMagic() {
        mSwordsman.attackMagic();
    }
}
